package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.bean.Course;
import com.example.bean.StudentCourse;
import com.example.mapper.CourseMapper;
import com.example.service.StudentCourseService;
import com.example.mapper.StudentCourseMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author wjf
* @description 针对表【student_course】的数据库操作Service实现
* @createDate 2022-09-29 21:07:10
*/
@Service
public class StudentCourseServiceImpl extends ServiceImpl<StudentCourseMapper, StudentCourse> implements StudentCourseService{

    @Resource
    private StudentCourseMapper studentCourseMapper;

    @Resource CourseMapper courseMapper;

    @Override
    public List<Course> searchCourses(Integer studentId) {
      List<Course> courses = courseMapper.searchCourses(studentId);
        return courses;
    }
}




